
.rich-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    margin: 0 auto;
}

/* 标题 */
.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}
.rich-content h1 { font-size: 2.2em; }
.rich-content h2 { font-size: 1.8em; }
.rich-content h3 { font-size: 1.5em; }
.rich-content h4 { font-size: 1.3em; }
.rich-content h5 { font-size: 1.15em; }
.rich-content h6 { font-size: 1em; }

/* 段落 */
.rich-content p {
    margin: 0 0 1.2em 0;
    text-align: justify;
}

/* 强调与内联样式 */
.rich-content strong,
.rich-content b {
    font-weight: 600;
    color: #333;
}
.rich-content em,
.rich-content i {
    font-style: italic;
}
.rich-content u {
    text-decoration: underline;
}
.rich-content del {
    text-decoration: line-through;
    color: #888;
}
.rich-content a {
    color: #1890ff;
    text-decoration: none;
    border-bottom: 1px solid #1890ff33;
    transition: all 0.2s;
}
.rich-content a:hover {
    color: #40a9ff;
    border-bottom-color: transparent;
}

/* 列表 */
.rich-content ul,
.rich-content ol {
    padding-left: 2em;
    margin: 1em 0;
}
.rich-content ul li,
.rich-content ol li {
    margin-bottom: 0.4em;
    line-height: 1.6;
}
.rich-content ul {
    list-style-type: disc;
}
.rich-content ol {
    list-style-type: decimal;
}

/* 引用 */
.rich-content blockquote {
    margin: 1.5em 0;
    padding: 0.8em 1.2em;
    border-left: 4px solid #1890ff;
    background-color: #f8f9fa;
    color: #555;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

/* 代码 */
.rich-content code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    background-color: #f0f2f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.95em;
    color: #d44a3e;
}
.rich-content pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}
.rich-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 14px;
}

/* 表格 */
.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 15px;
}
.rich-content table th,
.rich-content table td {
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    text-align: left;
}
.rich-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

/* 图片 */
.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 分割线 */
.rich-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* 行内文本高亮（如有） */
.rich-content mark {
    background-color: #fff59d;
    padding: 0 2px;
    border-radius: 2px;
}
